package com.housekeeping.housekeeping.serviceItem.utils;

import com.housekeeping.housekeeping.user.entity.AccountVo;

import javax.servlet.http.HttpServletRequest;

public class RequestUtils {

    /**
     * 在session获取登录信息
     * @param request  请求
     * @return aid     登录号
     */
    public static String verify(HttpServletRequest request)
    {   String aid=null;
        AccountVo account = (AccountVo)request.getSession().getAttribute("account");
        if (account!=null){aid=account.getAccount();}
        return aid;
    }
}
